package com.linked.basemanage.generallog.service.impl;

import com.linked.basemanage.generallog.bean.param.LogListParam;
import com.linked.basemanage.generallog.bean.po.LogInfoPO;
import com.linked.basemanage.generallog.mapper.IGeneralLogMapper;
import com.linked.basemanage.generallog.service.IGeneralLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :dbq
 * @date : 2023/1/16 9:34
 * @description : desc
 */
@Service
public class GeneralLogServiceImpl implements IGeneralLogService {

    private final IGeneralLogMapper generalLogMapper;

    @Autowired
    public GeneralLogServiceImpl(IGeneralLogMapper generalLogMapper) {
        this.generalLogMapper = generalLogMapper;
    }

    @Override
    public void insertGeneralLog(LogInfoPO param) throws Exception {
        generalLogMapper.insert(param);
    }

    @Override
    public List<LogInfoPO> queryLogList(LogListParam param) throws Exception {
        return generalLogMapper.queryLogList(param);
    }
}
